package com.yanqu.road.entity.activity.unionwar;

import com.yanqu.road.entity.DataObject;
import com.yanqu.road.entity.FieldTypeAnnotation;

import java.util.Objects;

@FieldTypeAnnotation(tableName = "t_u_activity_unionwar_user_vehicle")
public class UserVehicleSendTimes extends DataObject {

    /**
     * 活动id
     */
    @FieldTypeAnnotation(select = true, update = true, desc = "活动id")
    private int activityId;

    /**
     * 玩家id
     */
    @FieldTypeAnnotation(update = true, desc = "玩家id")
    private long userId;

    /**
     * 珍兽id
     */
    @FieldTypeAnnotation(update = true, desc = "珍兽id")
    private String vehicleUid;

    /**
     * 派遣次数
     */
    @FieldTypeAnnotation(desc = "派遣次数")
    private int times;

    public int getActivityId() {
        return activityId;
    }

    public void setActivityId(int activityId) {
        if(this.activityId != activityId) {
            this.activityId = activityId;
            setUpdateOption();
        }
    }

    public long getUserId() {
        return userId;
    }

    public void setUserId(long userId) {
        if(this.userId != userId) {
            this.userId = userId;
            setUpdateOption();
        }
    }

    public String getVehicleUid() {
        return vehicleUid;
    }

    public void setVehicleUid(String vehicleUid) {
        if(!Objects.equals(this.vehicleUid, vehicleUid)) {
            this.vehicleUid = vehicleUid;
            setUpdateOption();
        }
    }

    public int getTimes() {
        return times;
    }

    public void setTimes(int times) {
        if(this.times != times) {
            this.times = times;
            setUpdateOption();
        }
    }
}
